<@master template="master/master-loan"  title="逾期信息维护-新增">
<div class="detaiTab  detaiTab1">
<form  action="/ro2oloanoverdue/save" class="action-ajax-form" data-action-html="#action_load_body">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	  <tr>
	  	 <td class="bg" align="right" width="15%">贷款单号:</td>
	     <td>
			<@autocomplete url="/ro2oloanoverdue/queryByBillCode?billCode="
									name="billCode"
									action\-autocomplete\-callback\-function="fixname"
									value="${vo.billCode}"
									hideIdName="loanapplyNo"
									hideIdValue="${vo.loanapplyNo}"/>(联想)
	    </td>
	    <td class="bg" align="right">借款人姓名:</td>
	       	<td >
	       		<span id="loanUserName"></span>
	    		<input type="hidden" name="loanUserName" id="loanUserName1" class="tabInp" value="${vo.loanUserName}" >
	    	</td>
	    </tr>
	     <tr>
	        <td class="bg" align="right">省区:</td>
	         <td>
        		<span id="province"></span>
	    		<input type="hidden" name="province" class="tabInp" id="province1" value="${vo.province}" >
	         </td>
	    	 <td class="bg" align="right" width="15%">放款银行:</td>
	     	<td>
				<span id="loanBankName" ></span>
	    		<input type="hidden" name="loanBankName" class="tabInp" id="loanBankName1" value="${vo.loanBankName}" >
	    	</td>
	    </tr>
	    <tr>
	    	<td class="bg" align="right">信贷经理:</td>
	       	<td >
	    		<span id="loanOperer"></span>
	    		<input type="hidden" name="loanOperer" id="loanOperer1" class="tabInp" value="${vo.loanOperer}" >
	    	</td>
	    	<td class="bg" align="right">逾期总额(元):</td>
	       	<td >
	    		<input class="tabInp inputNum" name="overdueTotal" value="${vo.overdueTotal}"  />
	    	</td>
	    </tr>
	    <tr>
	    	<td class="bg" align="right">逾期本金(元):</td>
	       	<td >
	    		<input type="text" name="overduePrincipal" class="tabInp inputNum" value="${vo.overduePrincipal}" >
	    	</td>
	    	<td class="bg" align="right">逾期利息(元):</td>
	       	<td >
	    		<input class="tabInp inputNum" name="overdueInterest" value="${vo.overdueInterest}" />
	    	</td>
	    </tr>
	    <tr>
	    	<td class="bg" align="right">罚息合计(元):</td>
	       	<td >
	    		<input type="text" name="penaltyTotal" class="tabInp inputNum" value="${vo.penaltyTotal}" >
	    	</td>
	    	<td class="bg" align="right">逾期发生时间:</td>
	       	<td >
	    		<@date name="overdueTime" value="${vo.overdueTime}" />
	    	</td>
	    </tr>
	    <tr>
            <td class="bg"></td>
				<td colspan="3">
					<@permission permissionName="overdueSave">
							<input type="submit" value="保存" class="btn_auto_30 btn_blue" />&nbsp;&nbsp;
					</@permission>
					<@permission permissionName="overdueAddReload">
		            	<a href="javascript:history.go(-1);" target="_self" class="btn_auto_30 btn_blue" >取消</a>
		        	</@permission>
				</td>
        </tr>
	 </table>
	</form>
</div>
<script type="text/javascript">
	function fixname(data) {
		$("#loanUserName").html(data[2]);
		$("#loanUserName1").val(data[2]);
		$("#province").html(data[3]);
		$("#province1").val(data[3]);
		$("#loanBankName").html(data[5]);
		$("#loanBankName1").val(data[5]);
		$("#loanOperer").html(data[4]);
		$("#loanOperer1").val(data[4]);
		console.log(data);
		console.log(data[0]);
	}
</script>
</@master>